package gradle.common.core.mode.page;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 查询排序条件
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "查询排序条件")
public class QuerySort {

    /**
     * 排序字段
     */
    @Schema(description = "排序字段")
    private String field;

    /**
     * 排序方式
     * 0 : 倒序; 1 : 正序
     */
    @Schema(description = "排序方式, 0:倒序; 1:正序")
    private Integer isAsc = 0;

}
